﻿@using Controllers
@{
    var func=new MyFunc();
}
<!DOCTYPE HTML>
<html lang="en-US">
<head>
@Html.Partial("_top")
</head>
<body>
<div class="wrap pb_5">
@Html.Partial("_header")

		@{var classone=func.GetClass(ViewBag.model.classid);}

	<div class="p10">		
		
		<div class="tit_5">当前位置：@Html.Raw(ViewBag.model.cur)</div>
		<div class="n_title">@ViewBag.model.title</div>
		<div class="n_info">发布时间：@ViewBag.model.info["model"].addtime   浏览量：@(ViewBag.model.info["model"].hits)次 </div>
		<div class="n_content cl">
			@Html.Raw(ViewBag.model.content)
		</div>
		<div id="newsNextProv">
@{var prev=func.GetOne(ViewBag.model.ID,"prev",ViewBag.model.classid);}
			<div><span>上一条：</span>@if(prev.ID>0){
<a href="/article/@prev.ID" title="@prev.title">@prev.title</a>
}
else{
<span>没有了</span>
}</div>
@{var next=func.GetOne(ViewBag.model.ID,"next",ViewBag.model.classid);}
			<div><span>下一条：</span>@if(next.ID>0){
<a href="/article/@next.ID" title="@next.title">@next.title</a>
}
else{
<span>没有了</span>
}</div>
		</div>
		
	</div>
	<div id="copyright">
		@Html.Raw(ViewBag.model.copyright)
	</div>
	
</div>
	
@Html.Partial("_footer")
<script type="text/javascript">
$(function () {
    $(".nav ul li a[href='/list/@ViewBag.model.classid']").addClass("current");
    $(".nav ul li a[href='/list/@classone.fid']").addClass("current");
	
    var tag=$(".nav_1 li a[href='/list/@ViewBag.model.classid']").closest("li");

	tag.addClass("current");
})
</script>
</body>
</html>